package com.yuw.ProducerAndConsumer;

public class Manager {

	public static void main(String[] args) {
		// 创建仓库对象
		WarehouseStack warehouse = new WarehouseStack(5);
		// 创建生产者多线程对象
		Thread thP = new ProducerThread(warehouse);
		// 启动生产线程
		thP.start();

		// 创建消费者多线程
		Thread thC = new ConsumerThread(warehouse);
		// 启动消费者多线程
		thC.start();
	}

}
